\hypertarget{classFormcheck}{\section{Formcheck类 参考}
\label{classFormcheck}\index{Formcheck@{Formcheck}}
}
\subsection*{静态 Public 成员函数}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classFormcheck_a77d0bf7d4f98c32b2df999a72592b83d}{checking} (\&\$data, \&\$message, \$rule=array())
\item 
\hypertarget{classFormcheck_af901cc088235f326d623e7829fca3857}{static {\bfseries isunique} (\$data, \$param=null)}\label{classFormcheck_af901cc088235f326d623e7829fca3857}

\item 
static \hyperlink{classFormcheck_abcfbdebe86a5f6b0702e925886a4d8fb}{numrange} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a23d9479633556715288ad160356624d6}{strlength} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_ad4c6fef1b5cf4e37c8cdc3fee901d055}{isequal} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_ae526b8b3ff2d6d99b4831e952bd9034e}{ismobile} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a031a58d2c695b7d60eef357630f80f2b}{isnumber} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_ab2672d61cbd1e2404a6f5d3887af324c}{is\-\_\-notnumber} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a503a4427a6554f78a494e96c343b30df}{isnotnull} (\&\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a021044c7c8b946c563154198e7362ea9}{isemail} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a9a1ada95b47c19e105d82537795fe41d}{isarray} (\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_a8a9af0e66525a064cde848350011787b}{new\-\_\-htmlspecialchars} (\&\$data)
\item 
static \hyperlink{classFormcheck_a3715bf3885536c931d8d247abd7dbb34}{safe\-\_\-replace} (\&\$data)
\item 
static \hyperlink{classFormcheck_a3bde91e6b9fff6b62e79ca948d31151f}{new\-\_\-strip\-\_\-tags} (\&\$data, \$param=null)
\item 
static \hyperlink{classFormcheck_ae005da7a0d5557f7f3109ee4bc16c232}{is\-\_\-password} (\$password, \$param=null)
\item 
static \hyperlink{classFormcheck_ac8b275856713753bfd34bc102f7eb605}{is\-\_\-username} (\$username, \$param=null)
\item 
static \hyperlink{classFormcheck_af5215dac34663216209f2e1377a195ca}{is\-\_\-badword} (\$string, \$param=null)
\end{DoxyCompactItemize}


\subsection{详细描述}
form 验证 处理类 \begin{DoxyAuthor}{作者}
七觞酒  \href{mailto:739800600@qq.com}{\tt 739800600@qq.\-com} 
\end{DoxyAuthor}
\begin{DoxyDate}{日期}
2013-\/1-\/19
\end{DoxyDate}
字段验证类 字段处理 \$check = \hyperlink{classFormcheck_a77d0bf7d4f98c32b2df999a72592b83d}{Formcheck\-::checking}(\$data, \$message=null,array( 'manager\-\_\-name'=$>$array('func'=$>$array('isnotnull','is\-\_\-username'),'note'=$>$array('账号不能为空！','账号格式错误')), 'manager\-\_\-password'=$>$array('func'=$>$'isnotnull','note'=$>$'密码不能为空！'), 'manager\-\_\-password2'=$>$array('func'=$>$'isnotnull','note'=$>$'重复密码不能为空！'), 'manager\-\_\-ruleid'=$>$array('func'=$>$array('isnotnull','isequal'),'param'=$>$array(array('max'=$>$100,'min'=$>$20),22),'note'=$>$array('请选择角色！','不相等')) )); 

\subsection{成员函数说明}
\hypertarget{classFormcheck_a77d0bf7d4f98c32b2df999a72592b83d}{\index{Formcheck@{Formcheck}!checking@{checking}}
\index{checking@{checking}!Formcheck@{Formcheck}}
\subsubsection[{checking}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::checking (
\begin{DoxyParamCaption}
\item[{\&}]{\$data, }
\item[{\&}]{\$message, }
\item[{}]{\$rule = {\ttfamily array()}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a77d0bf7d4f98c32b2df999a72592b83d}
批量验证表单字段 \hypertarget{classFormcheck_af5215dac34663216209f2e1377a195ca}{\index{Formcheck@{Formcheck}!is\-\_\-badword@{is\-\_\-badword}}
\index{is\-\_\-badword@{is\-\_\-badword}!Formcheck@{Formcheck}}
\subsubsection[{is\-\_\-badword}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::is\-\_\-badword (
\begin{DoxyParamCaption}
\item[{}]{\$string, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_af5215dac34663216209f2e1377a195ca}
检测输入中是否含有 错误字符/敏感字符


\begin{DoxyParams}[1]{参数}
char & {\em \$string} & 要检查的字符串名称 \\
\hline
null & {\em \$param} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
T\-R\-U\-E or F\-A\-L\-S\-E 
\end{DoxyReturn}
\hypertarget{classFormcheck_ab2672d61cbd1e2404a6f5d3887af324c}{\index{Formcheck@{Formcheck}!is\-\_\-notnumber@{is\-\_\-notnumber}}
\index{is\-\_\-notnumber@{is\-\_\-notnumber}!Formcheck@{Formcheck}}
\subsubsection[{is\-\_\-notnumber}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::is\-\_\-notnumber (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_ab2672d61cbd1e2404a6f5d3887af324c}
是否不为数字 \hypertarget{classFormcheck_ae005da7a0d5557f7f3109ee4bc16c232}{\index{Formcheck@{Formcheck}!is\-\_\-password@{is\-\_\-password}}
\index{is\-\_\-password@{is\-\_\-password}!Formcheck@{Formcheck}}
\subsubsection[{is\-\_\-password}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::is\-\_\-password (
\begin{DoxyParamCaption}
\item[{}]{\$password, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_ae005da7a0d5557f7f3109ee4bc16c232}
检查密码长度是否符合规定


\begin{DoxyParams}[1]{参数}
S\-T\-R\-I\-N\-G & {\em \$password} & \\
\hline
null & {\em \$param} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
T\-R\-U\-E or F\-A\-L\-S\-E 
\end{DoxyReturn}
\hypertarget{classFormcheck_ac8b275856713753bfd34bc102f7eb605}{\index{Formcheck@{Formcheck}!is\-\_\-username@{is\-\_\-username}}
\index{is\-\_\-username@{is\-\_\-username}!Formcheck@{Formcheck}}
\subsubsection[{is\-\_\-username}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::is\-\_\-username (
\begin{DoxyParamCaption}
\item[{}]{\$username, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_ac8b275856713753bfd34bc102f7eb605}
检查用户名是否符合规定


\begin{DoxyParams}[1]{参数}
S\-T\-R\-I\-N\-G & {\em \$username} & 要检查的用户名 \\
\hline
null & {\em \$param} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
T\-R\-U\-E or F\-A\-L\-S\-E 
\end{DoxyReturn}
\hypertarget{classFormcheck_a9a1ada95b47c19e105d82537795fe41d}{\index{Formcheck@{Formcheck}!isarray@{isarray}}
\index{isarray@{isarray}!Formcheck@{Formcheck}}
\subsubsection[{isarray}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::isarray (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a9a1ada95b47c19e105d82537795fe41d}
验证是否为数组 \hypertarget{classFormcheck_a021044c7c8b946c563154198e7362ea9}{\index{Formcheck@{Formcheck}!isemail@{isemail}}
\index{isemail@{isemail}!Formcheck@{Formcheck}}
\subsubsection[{isemail}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::isemail (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a021044c7c8b946c563154198e7362ea9}
验证邮箱 \hypertarget{classFormcheck_ad4c6fef1b5cf4e37c8cdc3fee901d055}{\index{Formcheck@{Formcheck}!isequal@{isequal}}
\index{isequal@{isequal}!Formcheck@{Formcheck}}
\subsubsection[{isequal}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::isequal (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_ad4c6fef1b5cf4e37c8cdc3fee901d055}
两个值是否相等 \hypertarget{classFormcheck_ae526b8b3ff2d6d99b4831e952bd9034e}{\index{Formcheck@{Formcheck}!ismobile@{ismobile}}
\index{ismobile@{ismobile}!Formcheck@{Formcheck}}
\subsubsection[{ismobile}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::ismobile (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_ae526b8b3ff2d6d99b4831e952bd9034e}
是否为手机号 \hypertarget{classFormcheck_a503a4427a6554f78a494e96c343b30df}{\index{Formcheck@{Formcheck}!isnotnull@{isnotnull}}
\index{isnotnull@{isnotnull}!Formcheck@{Formcheck}}
\subsubsection[{isnotnull}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::isnotnull (
\begin{DoxyParamCaption}
\item[{\&}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a503a4427a6554f78a494e96c343b30df}
验证是否为空 \hypertarget{classFormcheck_a031a58d2c695b7d60eef357630f80f2b}{\index{Formcheck@{Formcheck}!isnumber@{isnumber}}
\index{isnumber@{isnumber}!Formcheck@{Formcheck}}
\subsubsection[{isnumber}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::isnumber (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a031a58d2c695b7d60eef357630f80f2b}
是否为数字 \hypertarget{classFormcheck_a8a9af0e66525a064cde848350011787b}{\index{Formcheck@{Formcheck}!new\-\_\-htmlspecialchars@{new\-\_\-htmlspecialchars}}
\index{new\-\_\-htmlspecialchars@{new\-\_\-htmlspecialchars}!Formcheck@{Formcheck}}
\subsubsection[{new\-\_\-htmlspecialchars}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::new\-\_\-htmlspecialchars (
\begin{DoxyParamCaption}
\item[{\&}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a8a9af0e66525a064cde848350011787b}
返回 转换html 标签为html 实体 后的文本 \hypertarget{classFormcheck_a3bde91e6b9fff6b62e79ca948d31151f}{\index{Formcheck@{Formcheck}!new\-\_\-strip\-\_\-tags@{new\-\_\-strip\-\_\-tags}}
\index{new\-\_\-strip\-\_\-tags@{new\-\_\-strip\-\_\-tags}!Formcheck@{Formcheck}}
\subsubsection[{new\-\_\-strip\-\_\-tags}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::new\-\_\-strip\-\_\-tags (
\begin{DoxyParamCaption}
\item[{\&}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a3bde91e6b9fff6b62e79ca948d31151f}
返回经过 strip\-\_\-tags 处理过的 文本 \hypertarget{classFormcheck_abcfbdebe86a5f6b0702e925886a4d8fb}{\index{Formcheck@{Formcheck}!numrange@{numrange}}
\index{numrange@{numrange}!Formcheck@{Formcheck}}
\subsubsection[{numrange}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::numrange (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_abcfbdebe86a5f6b0702e925886a4d8fb}
数字大小 在木范围内 
\begin{DoxyParams}[1]{参数}
 & {\em \$data} & \\
\hline
null & {\em \$param} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classFormcheck_a3715bf3885536c931d8d247abd7dbb34}{\index{Formcheck@{Formcheck}!safe\-\_\-replace@{safe\-\_\-replace}}
\index{safe\-\_\-replace@{safe\-\_\-replace}!Formcheck@{Formcheck}}
\subsubsection[{safe\-\_\-replace}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::safe\-\_\-replace (
\begin{DoxyParamCaption}
\item[{\&}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a3715bf3885536c931d8d247abd7dbb34}
返回经过 安全过滤后的文本 \hypertarget{classFormcheck_a23d9479633556715288ad160356624d6}{\index{Formcheck@{Formcheck}!strlength@{strlength}}
\index{strlength@{strlength}!Formcheck@{Formcheck}}
\subsubsection[{strlength}]{\setlength{\rightskip}{0pt plus 5cm}static Formcheck\-::strlength (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$param = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classFormcheck_a23d9479633556715288ad160356624d6}

\begin{DoxyParams}[1]{参数}
 & {\em \$data} & \\
\hline
array & {\em \$param} & \$param\mbox{[}'encode'\mbox{]} 编码 \$param\mbox{[}'max'\mbox{]} 最大长度 \$param\mbox{[}'min'\mbox{]} 最小长度 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/Formcheck.\-class.\-php\end{DoxyCompactItemize}
